﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="FileAttribute.aspx.cs" Inherits="FileManager_FileAttribute" %>

<%@ Register Src="~/custom/TreeControl.ascx" TagName="TreeControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/ScheduleManagerCss.css" />
    <style type="text/css">
        .btnAction
        {
            background-image: url(../imges/zhuandao.jpg);
            background-repeat: no-repeat;
            width: 50px;
        }
        .btnFile
        {
            background-color: #e3e1cc;
            background-image: url(../imges/wenjianjia.jpg);
            background-repeat: no-repeat;
            width: 70px;
            border: none;
        }
        .lbFileName
        {
            text-decoration: none;
        }
        .FileAttTop
        {
            margin-left: 30px;
            line-height: 22px;
        }
        .FileAttMiddle table tr td
        {
            text-align: left;
        }
        .FileAttTop table tr td .left
        {
            text-align: right;
        }
        .FileAttTop table tr td .right
        {
            text-align: left;
        }
        .style1
        {
            width: 241px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 864px; font-size: 12px;">
        <div class="branchtop">
            <table>
                <tr>
                    <td>
                        当前位置
                    </td>
                    <td>
                        <div class="lbBranch">
                            文档管理</div>
                    </td>
                </tr>
            </table>
        </div>
        <hr style="margin-bottom: 8px" />
        <div style="float: left; font-size: 12px; margin-left: 50px;">
            <uc1:TreeControl runat="server" ID="tree" />
        </div>
        <div style="width: 600px; float: right; margin-right: 30px; text-align: left;">
            <div style="color: White; padding-top: 5px; font-size: 12px; font-weight: bold; width: 72px;
                height: 18px; background-image: url(../imges/daohangbeijing2.jpg); background-repeat: no-repeat;">
                文件属性
            </div>
            <div class="FileAttTop">
                <table>
                    <tr>
                        <td class="left">
                            文件名
                        </td>
                        <td class="right">
                            <asp:TextBox ID="txtFileName" BorderColor="AliceBlue" ForeColor="Blue" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="left">
                            位置
                        </td>
                        <td class="right">
                            <asp:Label ID="lbPosition" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="left">
                            备注
                        </td>
                        <td class="right">
                            <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Height="75px" Width="223px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <hr style="margin-left: 0; margin-top: 7px; color: #ccc; width: 600px; margin-bottom: 5px;" />
            <div style="margin: 5px 30px; text-align: left;">
                创建时间：<asp:Label ID="lbCreateDate" runat="server" Text="Label"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                所有者：<asp:Label ID="lbOwner" runat="server" Text="Label"></asp:Label>
            </div>
            <div>
                文件图标
            </div>
            <div class="FileAttMiddle">
                <table>
                    <tr>
                        <td>
                            <asp:RadioButton ID="rb1" runat="server" /><asp:Image ID="Image1" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rbExcel" runat="server" /><asp:Image ID="Image2" runat="server"
                                ImageUrl="~/imges/excel.jpg" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rbAcc" runat="server" /><asp:Image ID="Image3" runat="server"
                                ImageUrl="~/imges/acc.jpg" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rbTu" runat="server" /><asp:Image ID="Image4" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rbSn" runat="server" /><asp:Image ID="Image5" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rbPdf" runat="server" /><asp:Image ID="Image11" runat="server"
                                ImageUrl="~/imges/ppt.jpg" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="rbWord" runat="server" /><asp:Image ID="Image6" runat="server"
                                ImageUrl="~/imges/word.jpg" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rbPPT" runat="server" /><asp:Image ID="Image7" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rbIE" runat="server" /><asp:Image ID="Image8" runat="server"
                                ImageUrl="~/imges/ie.jpg" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rb2" runat="server" /><asp:Image ID="Image9" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rb3" runat="server" /><asp:Image ID="Image10" runat="server" />
                        </td>
                        <td>
                            <asp:RadioButton ID="rb4" runat="server" /><asp:Image ID="Image12" runat="server" />
                        </td>
                    </tr>
                </table>
            </div>
            <div>
                <asp:GridView ID="GridView1" runat="server" Width="578px" AutoGenerateColumns="False"
                    DataKeyNames="AccId" OnRowDeleting="GridView1_RowDeleting">
                    <Columns>
                        <asp:BoundField HeaderText="文件名" DataField="AccName" />
                        <asp:BoundField HeaderText="大小" DataField="AccSize" />
                        <asp:TemplateField HeaderText="类型">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("AccType.FileTypeName") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("AccType.FileTypeName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="创建日期" DataField="CreateDate" />
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server" CommandName="delete" Height="15px"
                                    ImageUrl="~/imges/delete.png" Width="15px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#66CCFD" />
                </asp:GridView>
            </div>
            <div>
                操作提示</div>
            <div>
                <table>
                    <tr>
                        <td>
                            文件名：
                        </td>
                        <td>
                            <asp:FileUpload ID="FileUpload1" runat="server" BackColor="#E8F5FE" BorderColor="#33CCFF"
                                BorderStyle="Solid" />
                        </td>
                        <td style="text-align: right;" class="style1">
                            <asp:Button ID="btnUp" runat="server" CssClass="btnBranch" Text="上传" 
                                onclick="btnUp_Click" />
                        </td>
                    </tr>
                </table>
            </div>
            <hr style="margin-left: 0; margin-top: 7px; color: #ccc; width: 600px; margin-bottom: 5px;" />
            <div style="margin-bottom: 50px;">
                <asp:Button ID="btnSave" runat="server" CssClass="btnBranch" Text="保存退出" 
                    onclick="btnSave_Click" />&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" CssClass="btnBranch" Text="退出" 
                    onclick="btnCancel_Click" /></div>
        </div>
    </div>
</asp:Content>
